package com.coolingme.general;

/**
 * 具体元素（Concrete Element）∶具体元素类型，提供接受访问者的具体实现。通常的实
 * 现都为∶visitor.visit（this）;
 *
 * @author wangyue
 * @date 2020-10-09 22:50
 */
public class ConcreteElementA implements IElement {
    @Override
    public void accept(IVisitor visitor) {
        visitor.visit(this);
    }

    public void operationA(String visitor) {
        System.out.println(visitor + ":" + this.getClass().getSimpleName());
    }

}
